const _orgs = {
  rows: [
    {
      updateTime: '2019-11-14 19:47:40',
      isDelete: '0',
      version: 3,
      id: '871847',
      name: '这是一个很长的组织的名字',
      parentId: '31776',
      code: 'zsyghzdzzdmz',
      grade: '2',
      demId: '31748',
      orderNo: 13,
      isMaster: 0,
      path: '31748.31776.871847.',
      pathName: '/技术部/这是一个很长的组织的名字',
      limitNum: 0,
      exceedLimitNum: 0,
      groupId: '871847',
      groupCode: 'zsyghzdzzdmz',
      groupType: 'org',
      identityType: 'group',
      isParent: false,
    },
    {
      updateTime: '2019-10-12 16:57:10',
      isDelete: '0',
      version: 8,
      id: '876613',
      name: '测试部门',
      parentId: '0',
      code: 'csbm',
      demId: '31748',
      orderNo: 13,
      isMaster: 0,
      path: '31748.876613.',
      pathName: '/测试部门',
      limitNum: 2,
      exceedLimitNum: 0,
      groupId: '876613',
      groupCode: 'csbm',
      groupType: 'org',
      identityType: 'group',
      isParent: false,
    },
    {
      updateTime: '2019-09-29 14:22:47',
      isDelete: '0',
      version: 1,
      id: '31784',
      name: '财务部',
      parentId: '0',
      code: 'cwb',
      demId: '31748',
      orderNo: 160,
      isMaster: 0,
      path: '31748.31784.',
      pathName: '/财务部',
      limitNum: 0,
      exceedLimitNum: 0,
      groupId: '31784',
      groupCode: 'cwb',
      groupType: 'org',
      identityType: 'group',
      isParent: false,
    },
    {
      updateTime: '2019-10-12 16:55:33',
      isDelete: '0',
      version: 2,
      id: '31766',
      name: '董事部',
      parentId: '0',
      code: 'dsb',
      demId: '31748',
      orderNo: 201,
      isMaster: 0,
      path: '31748.31766.',
      pathName: '/董事部',
      limitNum: 1,
      exceedLimitNum: 1,
      groupId: '31766',
      groupCode: 'dsb',
      groupType: 'org',
      identityType: 'group',
      isParent: false,
    },
    {
      updateTime: '2019-09-29 14:22:54',
      isDelete: '0',
      version: 1,
      id: '31788',
      name: '秘书部',
      parentId: '0',
      code: 'msb',
      demId: '31748',
      orderNo: 393,
      isMaster: 0,
      path: '31748.31788.',
      pathName: '/秘书部',
      limitNum: 0,
      exceedLimitNum: 0,
      groupId: '31788',
      groupCode: 'msb',
      groupType: 'org',
      identityType: 'group',
      isParent: false,
    },
    {
      updateTime: '2019-11-14 19:47:45',
      isDelete: '0',
      version: 3,
      id: '31796',
      name: '美工',
      parentId: '31776',
      code: 'mg',
      grade: '2',
      demId: '31748',
      orderNo: 480,
      isMaster: 0,
      path: '31748.31776.31796.',
      pathName: '/技术部/美工',
      limitNum: 0,
      exceedLimitNum: 0,
      groupId: '31796',
      groupCode: 'mg',
      groupType: 'org',
      identityType: 'group',
      isParent: false,
    },
    {
      updateTime: '2019-09-29 16:57:50',
      isDelete: '0',
      version: 3,
      id: '31780',
      name: '商务部',
      parentId: '0',
      code: 'swb',
      demId: '31748',
      orderNo: 591,
      isMaster: 0,
      path: '31748.31780.',
      pathName: '/商务部',
      limitNum: 0,
      exceedLimitNum: 1,
      groupId: '31780',
      groupCode: 'swb',
      groupType: 'org',
      identityType: 'group',
      isParent: false,
    },
    {
      updateTime: '2019-11-14 19:47:34',
      isDelete: '0',
      version: 2,
      id: '31792',
      name: '开发',
      parentId: '31776',
      code: 'kf',
      demId: '31748',
      orderNo: 648,
      isMaster: 0,
      path: '31748.31776.31792.',
      pathName: '/技术部/开发',
      limitNum: 0,
      exceedLimitNum: 0,
      groupId: '31792',
      groupCode: 'kf',
      groupType: 'org',
      identityType: 'group',
      isParent: false,
    },
    {
      updateTime: '2019-10-11 16:55:33',
      isDelete: '0',
      version: 3,
      id: '876408',
      name: '开发部',
      parentId: '0',
      code: 'kfb',
      demId: '31748',
      orderNo: 860,
      isMaster: 0,
      path: '31748.876408.',
      pathName: '/开发部',
      limitNum: 5,
      exceedLimitNum: 0,
      groupId: '876408',
      groupCode: 'kfb',
      groupType: 'org',
      identityType: 'group',
      isParent: false,
    },
    {
      updateTime: '2019-11-14 19:47:34',
      isDelete: '0',
      version: 2,
      id: '31776',
      name: '技术部',
      parentId: '0',
      code: 'jsb',
      grade: '1',
      demId: '31748',
      orderNo: 863,
      isMaster: 0,
      path: '31748.31776.',
      pathName: '/技术部',
      limitNum: 0,
      exceedLimitNum: 0,
      groupId: '31776',
      groupCode: 'jsb',
      groupType: 'org',
      identityType: 'group',
      isParent: false,
    },
  ],
  total: 10,
  page: 1,
  pageSize: 10,
}
import mockUtil from '$exp/api/mock-util.js'
export default {
  name: 'orgData',
  getData(param) {
    return new Promise((resolve) => {
      setTimeout(() => {
        resolve(mockUtil.query(_orgs.rows, param))
      }, 500)
    })
  },
}
